Skip to contentSkip to conversation

New: [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

Bug 59089 [email protected] 1 participant 17 messages Jan 6, 2013 – Feb 20, 2013

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=59089

Priority: medium
Bug ID: 59089
Assignee: [email protected]
Summary: [bisected, regression] flood of GPU fault detected in
logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: All
Status: NEW
Version: git
Component: Drivers/Gallium/r600
Product: Mesa

GPU fault detected flood in logs (dmesg, kernel, errors and everything) of the following form:

[  533.928472] radeon 0000:03:00.0: GPU fault detected: 146 0x00335514
[  533.928477] radeon 0000:03:00.0:   VM_CONTEXT1_PROTECTION_FAULT_ADDR  
0x00000000
[  533.928483] radeon 0000:03:00.0:   VM_CONTEXT1_PROTECTION_FAULT_STATUS

0x00000000

Quoted 1 line

From time to time, there will be an address value different from 0x00000000.

They are produced at an awful rate, producing GB of logs in no time.

Appeared in kernel 3.8.0-rcX using a cayman GPU (HD 6950).

Bisecting to identify when the flood first appeared points at:
Commit: 4ac0533abaec2b83a7f2c675010eedd55664bc26

Author: Jerome Glisse <[email protected]> 2012-12-13 12:08:11
Committer: Alex Deucher <[email protected]> 2012-12-14 10:45:24
Parent: 9af20792124850369e764965690b99b20623dfc4 (drm/radeon: fix fence locking in the pageflip callback)
Branch: remotes/origin/master
Follows: v3.7-rc7
Precedes: v3.8-rc1

drm/radeon: fix htile buffer size computation for command stream checker

Fix the size computation of the htile buffer.

Maybe be related to some of the crashes seen in bug 58667.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

https://bugs.freedesktop.org/show_bug.cgi?id=59089

Alexandre Demers <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

           See Also|                            |https://bugs.freedesktop.or
                   |                            |g/show_bug.cgi?id=58667
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #1 from Alex Deucher <[email protected]> --- Should be fixed with this mesa commit:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4332f6fc185f968e7563e748b8c949021937c935

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #2 from Alexandre Demers <[email protected]> --- Seems good now.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

Alexandre Demers <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

Thomas Rohloff <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #3 from Thomas Rohloff <[email protected]> ---
I don't want to play the bad guy but for me this is not fixed, just reduced.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #4 from Alexandre Demers <[email protected]> --- (In reply to comment #3)

Quoted 1 line

I don't want to play the bad guy but for me this is not fixed, just reduced.

Well, I closed it because I don't have the continuous GPU fault flood happening anymore. However, I was unable to determine if there was still a GPU fault happening. This bug is really about the flood.

So, I don't have any problem in reopening it if you do experience a flood of GPU faults. I was getting GB of logs in no time.

Are you still seeing GPU faults only in some circumstances (games or specific applications) or just opening a session (for me it's with Gnome Shell) is enough? Also, keep in mind this bug is pinpointing a specific commit.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author Reviewed-by Brian Paul
#7 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #5 from Anthony Waters <[email protected]> --- I get the GPU faults starting with mesa commit

3e163a137be7f9a80ec720903c4bda028de5681f is the first bad commit commit 3e163a137be7f9a80ec720903c4bda028de5681f

Author: Marek Olšák <[email protected]>
Date:   Thu Nov 29 02:55:01 2012 +0100

gallium/postprocess: share pipe_context and cso_context with the state
tracker

Using one context instead of two is more efficient and we can skip another context flush.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #6 from Alexandre Demers <[email protected]> --- (In reply to comment #5)

Quoted 7 lines

I get the GPU faults starting with mesa commit

3e163a137be7f9a80ec720903c4bda028de5681f is the first bad commit commit 3e163a137be7f9a80ec720903c4bda028de5681f

Author: Marek Olšák <[email protected]>
Date:   Thu Nov 29 02:55:01 2012 +0100
Quoted 7 lines

gallium/postprocess: share pipe_context and cso_context with the state
tracker

Using one context instead of two is more efficient and we can skip another context flush.

Is it a flood? Other commits may create GPU faults, but it shouldn't flood your logs. I think it would be better to track different sources of GPU faults in different bugs.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #7 from Anthony Waters <[email protected]> ---
I would consider it a flood, the message continually appears until glxgears is exited. Can you confirm whether 3e163a137be7f9a80ec720903c4bda028de5681f in mesa stops all of the GPU faults? If it does I will open another bug report seeing as it may be different.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #8 from Alexandre Demers <[email protected]> --- (In reply to comment #7)

Quoted 4 lines

I would consider it a flood, the message continually appears until glxgears is exited. Can you confirm whether 3e163a137be7f9a80ec720903c4bda028de5681f in mesa stops all of the GPU faults? If it does I will open another bug report seeing as it may be different.

Neither glxgears nor Heroes of Newerth produce GPU fault flood since applied fix in mesa. If you are still experiencing a flood when glxgears is running, I'm pretty sure it is not the same thing under the hood. Which makes me think:
what kernel version are you using? Did you test with latest mesa version since fix was pushed in git? Which gpu do you have?

I'm running latest kernel from Linus' git, latest mesa git and I'm using an HD 6950.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #9 from Anthony Waters <[email protected]> ---
Mesa is at latest git, however, my kernel wasn't at Linus' git, so that may be the issue, using HD 6950. I will try the newest kernel and if it doesn't work I'll create a new bug report.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #10 from Alexandre Demers <[email protected]> --- (In reply to comment #9)

Quoted 3 lines

Mesa is at latest git, however, my kernel wasn't at Linus' git, so that may be the issue, using HD 6950. I will try the newest kernel and if it doesn't work I'll create a new bug report.

Ok, let me know. Meanwhile, I'll test something on my side to see if your bad commit could be related to another bug I'm experiencing with Tropics.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #11 from Alexandre Demers <[email protected]> --- (In reply to comment #9)

Quoted 3 lines

Mesa is at latest git, however, my kernel wasn't at Linus' git, so that may be the issue, using HD 6950. I will try the newest kernel and if it doesn't work I'll create a new bug report.

Also, you could see if updating libdrm and/or ddx driver could help, there were some commits for both of them in the last couple of weeks.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #12 from Anthony Waters <[email protected]> ---
I have been able to get rid of the flood, the message appears some times in dmesg so there is some other bug that exists.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

--- Comment #13 from Alexandre Demers <[email protected]> --- (In reply to comment #12)

Quoted 2 lines

I have been able to get rid of the flood, the message appears some times in dmesg so there is some other bug that exists.

I agree with you on that point, Thomas and I are also experiencing gpu faults in some cases.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw

[Bug 59089] [bisected, regression] flood of GPU fault detected in logs caused by 9af20... drm/radeon: fix fence locking in the pageflip callback

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=59089

Alexandre Demers <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #14 from Alexandre Demers <[email protected]> --- Closing since original bug/commit was fixed. The remaining GPU faults must have a different root.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel